<?php

class Bag extends AtomWidget
{
	public $title='Bag';

	public function getUserBag()
	{
		$user = User::model()->findByPk(Yii::app()->user->id);
		return ($user != null) ? $user->bag : '';
	}

}
?>
